#include"Queue.h"

int main()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePop(&q);
	QueuePop(&q);

	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueueDateType front = QueueFront(&q);
	QueueDateType back = QueueBack(&q);
	int size = QueueSize(&q);
	QueuePop(&q);
	QueuePop(&q);

	QueuePush(&q, 1);
	printf("%d ", QueueFront(&q));
	QueuePop(&q);
	QueuePush(&q, 2);
	printf("%d ", QueueFront(&q));
	QueuePop(&q);
	QueuePush(&q, 3);
	printf("%d ", QueueFront(&q));
	QueuePop(&q);

	while(q.head)
	{
		printf("%d ", QueueFront(&q));
		QueuePop(&q);
	}

	QueueDestroy(&q);

	return 0;
}